factor a trigonometric equation to determine all the solutions